package com.c.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author wangxiangli
 * @create 2022-12-28-20:40
 */
@Data
@TableName("t_population_classification")
@Accessors(chain = true)
public class PopulationClassification implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;//主键
    @TableField("checkNumber")
    private String checkNumber;//体检号
    @TableField("member_id")
    private Integer memberId;//会员id
    @TableField("member_name")
    private String memberName;//会员名称
    @TableField("sex")
    private String sex;//性别
    @TableField("age")
    private Integer age;//年龄
    @TableField("population_classification_name")
    private String populationClassificationName;//分类名称
    @TableField("doctor_id")
    private Integer doctorId;//健康师id
    @TableField("doctor_name")
    private String doctorName;//健康师名字
    @TableField("status")
    private String status;//状态
    @TableField("create_id")
    private Integer createId;//创建人
    @TableField("update_id")
    private Integer updateId;//修改人
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date gmtCreate;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date gmtModified;
    @TableField("title")
    private String title;//干预方案标题
    @TableField("target")
    private String target;//目标
    @TableField("food_intervene_id")
    private Integer foodInterveneId;//饮食方案id
    @TableField("food_intervene_name")
    private String foodInterveneName;//饮食方案名称
    @TableField("sport_intervene_id")
    private Integer sportInterveneId;//运动方案id
    @TableField("sport_intervene_name")
    private String sportInterveneName;//运动方案名称
    @TableField("health_intervene_id")
    private Integer healthInterveneId;//健康方案id
    @TableField("health_intervene_name")
    private String healthInterveneName;//健康方案名称
    @TableField("intervene_startdate")
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date interveneStartdate;//干预开始时间
    @TableField("intervene_enddate")
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date interveneEnddate;//干预结束时间
    @TableField("intervene_status")
    private String interveneStatus;//干预启用状态

}